package cn.wolfcode.p2p.base.domain;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import org.springframework.format.annotation.DateTimeFormat;

import com.alibaba.fastjson.JSONObject;

import lombok.Getter;
import lombok.Setter;

/**
 * 视频认证
 * 
 * @author wolfcode
 *
 */
@Setter
@Getter
public class VideoAuth extends BaseAuditDomain {

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date orderDate;
	private OrderTime orderTime;

	public String getJsonString() {
		Map<String, Object> json = new HashMap<>();
		json.put("id", id);
		json.put("applier", this.applier.getUsername());
		return JSONObject.toJSONString(json);
	}

}
